// This function is used to initialize the courseware
// when a student first runs it.
function newLessonInit()
{
	// Leave this here.
	LMSSetValue("cmi.core.lesson_status","incomplete");
	disableNavControllerSave = true;
	
	// Place your lesson's custom initializations here.
	//
	// When calling functions to set page and topic states
	// (prerequisites, complete, hidden, locked) it is
	// important to remember that newLessonInit() is only 
	// called once (the very first time the course gets run).
	// The initial states of all pages and topics in the courseware
	// at this time are clear - that is they are all initially
	// marked as incomplete, visible, unlocked, and have
	// no prerequisites.
	//
	// Some Possible calls:
	//
	// setPagePrerequisite(targetSection, targetTopic, targetSubtopic, targetPage, prereqSection, prereqTopic, prereqSubtopic, prereqPage);
	// markPageComplete(section, topic, subtopic, page);
	// hidePage(section, topic, subtopic, page);
	// lockPage(section, topic, subtopic, page);
	// setTopicPrerequisite(targetSection, targetTopic, targetSubtopic, prereqSection, prereqTopic, prereqSubtopic, prereqPage);
	// hideTopic(section, topic, subtopic);
	// lockTopic(section, topic, subtopic);
	// markTopicComplete(section, topic, subtopic);
	// addBookmark(section, topic, page);
	// setSameTopicMultiplePagePrerequisites(section, topic, subtopic, page, +page)
	// lockEntireSection(section)
	// lockEntireTopic(section, topic, subtopic)
	// markEntireTopicComplete(section, topic, subtopic)
	
	///////////////////////////
	// Place your code below //
	///////////////////////////

	///////////////////////////
	//     End your code     //
	///////////////////////////
	
	disableNavControllerSave = false;
	saveNavControllerData();
}

// This function gets called immediately after a lesson is
// successfully loaded.
function lessonLoaded()
{
	if (API == null)
	{
		noLMS();
	}
}

// This function gets called whenever the student launches
// the courseware without an LMS.  You may want to put code
// in here that hides any portion of the course that you don't
// want users to be in while they are not tethered to the LMS.
function noLMS()
{
}
